package copy;
/**
 * 用来读写object对象
 */
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

public class ObjectStream {
	public static ObjectInputStream getObjInStream(InputStream in) throws IOException {	
		return new ObjectInputStream(in);	
	}
	public static ObjectOutputStream getObjOutStream(OutputStream out) throws IOException {
		
		return new ObjectOutputStream(out);
	}
}
